

<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Welcome</title>
    <script src="/js/device.js" type="text/javascript"></script>
    <script src="/js/unicodes.js" type="text/javascript"></script>
    <script>
        // var is_phone= '';
        // var isMobile = device.mobile(),
        //     isIos = device.ios(),
        //     isAndroid = device.android();
        // var u = location.href;
        // if (isMobile) {
        //     if (!is_phone) {
        //         h = u.replace(/phone\/\d/,'phone/1');
        //         location.href = h;
        //     }
        // } else if (is_phone) {
        //     var h = '';
        //     if (u.indexOf('phone=') != -1) {
        //         h = u.replace(/phone=\d/,'phone=0');
        //     } else if (u.indexOf('/phone/') != -1) {
        //         h = u.replace(/phone\/\d/,'phone/0');
        //     } else {
        //         h = u+(u.indexOf('?')==-1?'?':'&')+'phone=0';
        //     }
        //     location.href = h;
        // }
        // window.onresize = function () {
        // 	setTimeout(function() {
        // 		var isMobile2 = device.mobile();
        // 		if (isMobile != isMobile2) location.reload(1);
        // 	},2000);
        // }
    </script>
</head>

<body>
<link href="/css/Css3.css" rel="stylesheet" type="text/css">
<title></title>


<div class="top" style="background-color:#fff;margin:0 auto;">
    <div style="text-align:center;font-size:45px;color:red;font-weight:bold;padding:0 0 2px 0">
        中原				</div>
    <div class="clear"></div>
</div>

<div class="top1" style="margin:0 auto;border:none;padding-top: 0px;">
    <div class="left1" style="margin:0 auto;float:none;width:820px;border:1px solid #c4d1cb;padding:20px;">
        <div class="title" style="clear:both;">%x4Pf1a#z54T58</div>
        <div class="box">
            <ul>
                <li class="liWrap" style="width:150px;border:1px solid #54b2e2;border-radius: 10px;background:#ebf7ff;"><a id="siteName_0" target="_blank" href="http://192.168.30.8:821" style="display:block;">#z7eYbf%x8idef一&nbsp;&nbsp;&nbsp;<b style="color:#ff9b9b;"></b></a><span id="status_0"></span></li>
                <li class="liWrap" style="width:150px;border:1px solid #54b2e2;border-radius: 10px;background:#ebf7ff;"><a id="siteName_1" target="_blank" href="https://w2.vvc9a.com?token=A4F5D16D57C700C88AFBCFD33E848B9C" style="display:block;">#z7eYbf%x8idef二&nbsp;&nbsp;&nbsp;<b style="color:#ff9b9b;"></b></a><span id="status_1"></span></li>
                <li class="liWrap" style="width:150px;border:1px solid #54b2e2;border-radius: 10px;background:#ebf7ff;"><a id="siteName_2" target="_blank" href="https://w1.vvc9f.com?token=A4F5D16D57C700C88AFBCFD33E848B9C" style="display:block;">#z7eYbf%x8idef三&nbsp;&nbsp;&nbsp;<b style="color:#ff9b9b;"></b></a><span id="status_2"></span></li>
                <li class="liWrap" style="width:150px;border:1px solid #54b2e2;border-radius: 10px;background:#ebf7ff;"><a id="siteName_3" target="_blank" href="https://w5.vvc9c.com?token=A4F5D16D57C700C88AFBCFD33E848B9C" style="display:block;">#z7eYbf%x8idef四&nbsp;&nbsp;&nbsp;<b style="color:#ff9b9b;"></b></a><span id="status_3"></span></li>
                <li class="liWrap" style="width:150px;border:1px solid #54b2e2;border-radius: 10px;background:#ebf7ff;"><a id="siteName_4" target="_blank" href="https://w1.vvc9f.com?token=A4F5D16D57C700C88AFBCFD33E848B9C" style="display:block;">#z7eYbf%x8idef五&nbsp;&nbsp;&nbsp;<b style="color:#ff9b9b;"></b></a><span id="status_4"></span></li>
            </ul>
            <div class="clear"></div>
        </div>
    </div>
    <div class="clear"></div>
</div>

<div class="top1" style="margin:0 auto;border:none;">
    <div class="left1" style="margin:0 auto;float:none;width:820px;border:1px solid #c4d1cb;padding:20px;">
        <div class="title" style="clear:both;">#z4eBe3%x71406</div>
        <div class="box">
            <ul>
                <li class="liWrap" style="width:150px;border:1px solid #54b2e2;border-radius: 10px;background:#ebf7ff;"><a id="siteName_5" target="_blank" href="http://192.168.30.8:822" style="display:block;">#z7eYbf%x8idef一&nbsp;&nbsp;&nbsp;<b style="color:#ff9b9b;"></b></a><span id="status_5"></span></li>
                <li class="liWrap" style="width:150px;border:1px solid #54b2e2;border-radius: 10px;background:#ebf7ff;"><a id="siteName_6" target="_blank" href="https://g2.vvc9a.com?token=A4F5D16D57C700C88AFBCFD33E848B9C" style="display:block;">#z7eYbf%x8idef二&nbsp;&nbsp;&nbsp;<b style="color:#ff9b9b;"></b></a><span id="status_6"></span></li>
                <li class="liWrap" style="width:150px;border:1px solid #54b2e2;border-radius: 10px;background:#ebf7ff;"><a id="siteName_7" target="_blank" href="https://g1.vvc9f.com?token=A4F5D16D57C700C88AFBCFD33E848B9C" style="display:block;">#z7eYbf%x8idef三&nbsp;&nbsp;&nbsp;<b style="color:#ff9b9b;"></b></a><span id="status_7"></span></li>
                <li class="liWrap" style="width:150px;border:1px solid #54b2e2;border-radius: 10px;background:#ebf7ff;"><a id="siteName_8" target="_blank" href="https://g5.vvc9c.com?token=A4F5D16D57C700C88AFBCFD33E848B9C" style="display:block;">#z7eYbf%x8idef四&nbsp;&nbsp;&nbsp;<b style="color:#ff9b9b;"></b></a><span id="status_8"></span></li>
                <li class="liWrap" style="width:150px;border:1px solid #54b2e2;border-radius: 10px;background:#ebf7ff;"><a id="siteName_9" target="_blank" href="https://g1.vvc9f.com?token=A4F5D16D57C700C88AFBCFD33E848B9C" style="display:block;">#z7eYbf%x8idef五&nbsp;&nbsp;&nbsp;<b style="color:#ff9b9b;"></b></a><span id="status_9"></span></li>
            </ul>
            <div class="clear"></div>
        </div>
    </div>				<div class="clear"></div>
</div>

<div class="top1" style="margin:0 auto;border:none;color:grey;">
</div>

<div id="speed" style="display:none"></div>
<script>
    function $(sArg, context) {
        switch(sArg.charAt(0)) {
            case "#":
                return document.getElementById(sArg.substring(1));
                break;
            case ".":
                var reg = new RegExp("(^|\\s)"+ sArg.substring(1) +"(\\s|$)"),
                    arr = [],
                    aEl = $("*", context),
                    i;
                for(i = 0; i < aEl.length; i++) reg.test(aEl[i].className) && arr.push(aEl[i]);
                return arr;
                break;
            default:
                return (context || document).getElementsByTagName(sArg);
                break;
        }
    }

    var li = $('.liWrap');
    var st;
    var count = 1;
    var oSpeed = document.getElementById('speed');
    var timeout = null;
    // var cache = [];

    // var cacheImg = function () {
    //     var cid = '';
    //     for (var c = 0; c < li.length; c++) {
    //         var clink = {}
    //         cid = c + '';
    //         clink.img = document.createElement('img');
    //         clink.url = li[c].getElementsByTagName("a")[0].href.split('/').slice(0, 3).join('/') + "/speed.png?";
    //         clink.time = 0;
    //         clink.number = 0;
    //         clink.img.onerror = getError;
    //         clink.img.onload = getLoad;
    //         clink.img.id = cid;
    //         clink.loadTime = [];
    //         clink.stop = false;
    //         cache[c] = clink;
    //     }
    // }
    // var clear = function (c) {
    //     clearTimeout(timeout);
    //     timeout = null;
    //     if (!c) {
    //         for (var i = li.length - 1; i >= 0; i--) {
    //             if (li[i].getElementsByTagName('label').length) {
    //                 li[i].getElementsByTagName('label')[0].innerHTML = '';
    //             }
    //         };
    //     };
    // }
    // var test = function (c) {
    //     clear(c);

    //     var cid = "";
    //     if (cache.length > 0 && cache[c]) {
    //         if (li[c].getElementsByTagName("label").length > 0) {
    //             li[c].getElementsByTagName("label")[0].innerHTML = "測速中";
    //             cache[c].img.src = cache[c].url + (Math.random() + '').replace('0.', '');
    //         } else {
    //             var span = document.createElement("label");
    //             span.id = c + "m";
    //             span.innerHTML = "測速中";
    //             li[c].appendChild(span);
    //             cache[c].img.src = cache[c].url + (Math.random() + '').replace('0.', '');
    //             // console.log(oSpeed)
    //             speed.appendChild(cache[c].img);
    //         }
    //         cache[c].time = new Date().getTime();
    //         cache[c].stop = false;
    //         timeout = setTimeout(function () {
    //             getError.call(cache[c].img, c);
    //         }, 5000);
    //     } else {
    //         //btn.removeAttribute('disabled');
    //     };
    // }

    // function getError(c) {
    //     var n = this.id;
    //     if (typeof c === 'number') {
    //         n = c;
    //     };
    //     n = parseInt(n, 10);
    //     if (document.getElementById(this.id + 'm')) {
    //         if (!cache[parseInt(n, 10)].stop) {
    //             cache[parseInt(n, 10)].number = 0;
    //             cache[parseInt(n, 10)].stop = true;
    //             if (document.getElementById(n + 'm').innerHTML != '超時' || document.getElementById(n + 'm').innerHTML == '測速中') {
    //                 document.getElementById(n + 'm').innerHTML = '無法鏈接';
    //             }
    //         };
    //         setTimeout(function () {
    //             test(n + 1);
    //         }, 500);
    //     }
    // }

    // function getLoad() {

    //     var end = new Date().getTime(),
    //         cid = parseInt(this.id, 10),
    //         clink = cache[cid],
    //         td = clink.number ? end - cache[cid].time : end - cache[cid].time,
    //         total = 0;
    //     cache[cid].loadTime.push(td);
    //     cache[cid].number += 1;
    //     if (cache[cid].stop) {
    //         return;
    //     }

    //     if (cache[cid].number < 2) {

    //         setTimeout(function () {
    //             test(cid);
    //         }, 500);

    //     } else {
    //         for (var c = 0; c < 2; c++) {
    //             total += clink.loadTime[c];
    //         }
    //         document.getElementById(cid + 'm').innerHTML = (total / 2).toFixed(2)+'毫秒';
    //         count -= 1;
    //         cache[cid].number = 0;
    //         cache[cid].loadTime.length = 0;
    //         cache[cid].stop = true;
    //         setTimeout(function () {
    //             test(cid + 1);
    //         }, 500);
    //     }
    // }

    // cacheImg();
    //
    // 记时
    var autourl = [];
    function auto(i) {
        var obj = li[i].getElementsByTagName("b")[0];
        if (count > 200) {
            obj.innerHTML = "链接超时";
        } else {
            obj.innerHTML = count * 10 + "ms";
        }
        count = 1;
    }
    // 新方法
    function newTest() {
        count = 1;
        clearInterval(timeout);
        timeout = null;
        timeout = setInterval("count++", 100);
        var src = '';
        var obj = null;
        for (var i = 0; i < li.length; i++) {
            obj = li[i].getElementsByTagName("b")[0];
            obj.innerHTML = "测速中";
            src = li[i].getElementsByTagName('a')[0].href;
            oSpeed.innerHTML = "<img src=" + src + "/" + Math.random() + " width=1 height=1 onerror=auto(" + i + ") style='display:none'>";
            // var img = document.createElement("img");
            // img.src = src.replace(/(\/*$)/g,"") + "/" + Math.random();
            // img.width = 1;
            // img.height = 1;
            // img.setAttribute('onerror',"auto(" + i + ")");
            // img.style.visibility = 'hidden';
            // oSpeed.appendChild(img);
        };
    }
    newTest();

    var timecount = 1;
    var timerstart0;
    function CountTime(i,timespace) {
        var obj = li[i].getElementsByTagName("b")[0];
        if (timespace > 100) {
            obj.innerHTML = "链接超时";
        } else if (timespace < 1) {
            obj.innerHTML = "1毫秒";
        } else {
            var elapsed_msec = timespace / 100 * 1000;
            var timestr = elapsed_msec + '毫秒';
            obj.innerHTML = timestr;
        }
    }
    function testspeed() {
        timerstart0 = timecount;
        for (var i = 0; i < li.length; i++) {
            obj = li[i].getElementsByTagName("b")[0];
            obj.innerHTML = "测速中";
            src = li[i].getElementsByTagName('a')[0].href;
            var img = document.createElement("img");
            img.src = src.replace(/(\/*$)/g,"") + "/" + Math.random();
            img.width = 1;
            img.height = 1;
            img.setAttribute('onerror',"CountTime("+i+",timecount-timerstart0)");
            img.style.visibility = 'hidden';
            oSpeed.appendChild(img);
        }
    }
    // testspeed();

    chk_unicode('1');
</script>
<script>
    (function(){
        document.getElementsByTagName('head')[0].appendChild = '';
        document.body.appendChild = '';
    })();
</script>
</body>
</html>







